<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('Admin/Subject/index')}">专题列表</a></li>
			<li><a href="{:U('Admin/Subject/add')}">添加专题</a></li>
		</ul>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th>专题ID</th>
					<th>专题名称</th>
					<th>专题图片</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="data" item="vo">
				<tr>
					<td>{$vo.cateId|number_format=0,'',''}</td>
					<td><a href='{:U("Admin/News/index",array("upperId"=>number_format($vo["cateId"],0,'',''), "subjectName"=>$vo["cateName"]))}'>{$vo.cateName}</a></td>
					<td>{$vo.ncUrl}</td>
					<td>
						<a href='{:U("Admin/Subject/edit",array("cateId"=>number_format($vo["cateId"],0,'','')))}'>编辑</a>
						<a href='{:U("Admin/Subject/del",array("cateId"=>number_format($vo["cateId"],0,'','')))}' class="js-ajax-delete">删除</a>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
	<script>
	$(document).ready(function(){
		$('input[name="query_form_btn"]').click(function(){
			 $('#query_form').attr('action', $(this).attr('data-action'));
			 $('#query_form').submit();
		});
		
	});
	</script>
</body>
</html>